Raised This Month: $51 Target: $400
 12% 

[CSGO] Free taser


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Plugin ID:
4664
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Give free and/or infinite taser to player on spawn in CSGO
    Old 06-07-2015 , 11:49   [CSGO] Free taser
    Reply With Quote #1

    Name: Free taser

    Description: Give free and/or infinite taser to player on spawn.
    Created special for my Zombie Riot server.

    Installation: Place compiled plugin (csgo_taser.smx) into the plugins folder (../addons/sourcemod/plugins/).

    CVars:
    • csgo_taser_version - Plugins version
    • sm_taser_free - On/Off free taser on spawn
    • sm_taser_inf - On/Off Infinite taser
    Attached Files
    File Type: sp Get Plugin or Get Source (csgo_taser.sp - 2732 views - 2.6 KB)
    __________________

    Last edited by Grey83; 06-07-2015 at 12:26.
    Grey83 is offline
    VJScope
    Senior Member
    Join Date: Jul 2012
    Location: Finland
    Old 08-01-2015 , 07:13   Re: [CSGO] Free taser
    Reply With Quote #2

    Hello!

    I didn't think that I would publish this plugin because my coding skills are not that great. But here is a taser related plugin that you can use freely. The idea is that you will get another taser if you kill a player but if you miss or just wound him, you won't get another taser.

    Some issues (I might fix them myself soon):
    - If you kill your teammate with a taser, you will get another one.
    - For some reason you will lose your taser at the beginning of the next round unless you haven't fired it at all.

    Some suggestions:
    - How about players getting tasers directly to their hand after a kill? Right now it takes pistol or other gun so you have to either throw away all guns or switch really fast.


    Code:
    #include <sourcemod>
    #include <sdktools>
    #include <cstrike>
    #include <sdkhooks>
    #include <colors>
    #include <updater>
    
    #define		MAX_WEAPON_STRING		80
    
    new Handle:ClientTimer[MAXPLAYERS+1] = {INVALID_HANDLE, ...};
    
    public OnPluginStart()
    {
    	HookEvent("player_death", Event_PlayerDeath);
    }
    
    public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
    {
    	new killer = GetClientOfUserId(GetEventInt(event, "attacker"));
    	
    	decl String:weapon[MAX_WEAPON_STRING];
    	weapon[0] = '\0';
    	
    	GetEventString(event, "weapon", weapon, sizeof(weapon));
    	
    	if (StrEqual(weapon, "taser", false) || StrEqual(weapon, "knife", false))
    	{
    		ClientTimer[killer] = CreateTimer(0.5, Timer_GiveZeus, killer);
    	}
    }
    
    public Action:Timer_GiveZeus(Handle:timer, any:client)
    {
    	ClientTimer[client] = INVALID_HANDLE;
    	
    	GivePlayerItem(client, "weapon_taser");
    }
    __________________
    Strange women lying in ponds distributing swords is no basis for a system of government. Supreme executive power derives from a mandate from the masses, not from some farcical aquatic ceremony.
    VJScope is offline
    BassPower
    Member
    Join Date: Mar 2011
    Location: Lithuania
    Old 02-09-2016 , 10:55   Re: [CSGO] Free taser
    Reply With Quote #3

    Hello, can you add Molotov to Terrorist now only CT have zeus
    BassPower is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 02-10-2016 , 02:43   Re: [CSGO] Free taser
    Reply With Quote #4

    Quote:
    Originally Posted by BassPower View Post
    Hello, can you add Molotov to Terrorist now only CT have zeus
    try change
    PHP Code:
    (client_team 2
    on
    PHP Code:
    (client_team 1
    at lines 69 and 82.

    I have now no way to verify the plugin work on the server.
    __________________
    Grey83 is offline
    ph
    AlliedModders Donor
    Join Date: Mar 2006
    Old 02-25-2016 , 06:54   Re: [CSGO] Free taser
    Reply With Quote #5

    It only gives zeus to CT and not T?

    Can both teams have zeus?
    __________________
    ph is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 02-25-2016 , 08:28   Re: [CSGO] Free taser
    Reply With Quote #6

    Quote:
    Originally Posted by ph View Post
    It only gives zeus to CT and not T?
    Yes, this plugin was made mainly for Zombie Reloaded Riot
    Quote:
    Originally Posted by ph View Post
    Can both teams have zeus?
    Try this version:
    Attached Files
    File Type: sp Get Plugin or Get Source (csgo_taser 1.0.1.sp - 1859 views - 2.6 KB)
    __________________

    Last edited by Grey83; 02-25-2016 at 12:43.
    Grey83 is offline
    ownage13
    AlliedModders Donor
    Join Date: Apr 2015
    Old 10-13-2017 , 21:25   Re: [CSGO] Free taser
    Reply With Quote #7

    Hello Grey83,

    This plugin works great. I am using the 1.0.1 version

    What I'm wondering is, is there a way to make it so you type !zues to enable the zues and for this to only be accessed by ADMFLAG_RESERVATION? I've been trying to script it myself off this plugin but I'm a noob and haven't been able to figure it out so far :/ Any help would be greatly appreciated (:
    ownage13 is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 10-15-2017 , 13:05   Re: [CSGO] Free taser
    Reply With Quote #8

    ownage13, try this version (commands: sm_zeus and sm_taser):
    Attached Files
    File Type: sp Get Plugin or Get Source (csgo_taser 1.0.2.sp - 1508 views - 3.6 KB)
    File Type: smx csgo_taser 1.0.2.smx (6.4 KB, 602 views)
    __________________
    Grey83 is offline
    ownage13
    AlliedModders Donor
    Join Date: Apr 2015
    Old 10-15-2017 , 13:59   Re: [CSGO] Free taser
    Reply With Quote #9

    Thank you Grey83! I will be seeing how this works right after i finish breakfast!

    Again thank you for going out of your way and making this update for me (:
    ownage13 is offline
    ownage13
    AlliedModders Donor
    Join Date: Apr 2015
    Old 10-15-2017 , 14:50   Re: [CSGO] Free taser
    Reply With Quote #10

    Alright so I tested it and ran into complications

    What I think it should be is that when you start in the game the zeus should be disabled (that way this can be used strictly for people with admflag_reservation access and not everyone). when typing !zeus or !taser it should bring up a menu where it can enable the zeus and save the client preferences of wanting the zeus or not wanting the zeus.

    Again thank you for doing an update on this. It is very much appreciated! (:
    ownage13 is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 23:15.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode